package com.bysc.commentservice.service;

import com.bysc.commentservice.entity.CommentParent;
import com.baomidou.mybatisplus.extension.service.IService;
import com.bysc.commentservice.entity.vo.CommentFormVo;
import com.bysc.commentservice.entity.vo.CommentQueryVo;
import com.bysc.commonutils.vo.PageResult;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author kkk
 * @since 2024-06-15
 */
public interface CommentParentService extends IService<CommentParent> {

    CommentParent addParentCommentByPostIdAndToken(CommentFormVo parentCommentFormVo, String userId);

    PageResult getCommentListByTokenAndPostIdOrderByCreatTime(String userId, String id, Integer page, Integer limit);

    PageResult getCommentListByTokenAndPostIdOrderByLike(String userId, String id, Integer page, Integer limit);

    void updateParentCommentById(CommentFormVo parentCommentFormVo, Object id);

    CommentParent deleteParentCommentById(Object id);

    PageResult getAllCommentListByQueryVoOrderByCreatTime(Integer page, Integer limit, CommentQueryVo queryVo);
}
